package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.Bill;
import com.example.automanagement.mapper.BillMapper;
import com.example.automanagement.service.BillService;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillServiceImpl implements BillService {
    @Resource
    private BillMapper billMapper;


    @Override
    public List<Bill> pageList(String userId) {
        return billMapper.pageList(userId);
    }

    @Override
    public void addBill(Bill bill) {
        billMapper.addBill(bill);
    }

    @Override
    public Bill getBillById(String billId) {
        return billMapper.getBillById(billId);
    }
}
